package com.server.push.dto.request;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class RequestMsg {
    String type;
    String auth;
    JSONObject data;

    public<T> T getData(Class<T> tClass) {
        return data.toJavaObject(tClass);
    }
}
